import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export const saveTopo = (content: string) => {
  return http.request("post", baseUrlApi("topo"), {
    data: {
      content: content
    }
  });
};

export interface TopologyT {
  id?: string;
  content?: string;
}

export const getTopo = () => {
  return http.request<TopologyT>("get", baseUrlApi("topo"));
};
